<template>
	<view class="contact-me-main">
		技术支持：<span @click="contactMe()">{{phone}}</span>
		<span @click="gotoCorp()" v-if="showCorp">，服务资质</span>
	</view>
</template>

<script>
var that;
export default {
	data() {
		return {
			phone: '15925061256'
		}
	},
	props: {
		showCorp: {
			type:Boolean, default: false
		}
	},
	created() {
		that = this;
	},
	methods: {
		contactMe: function() {
			that = this;
			uni.makePhoneCall({
				phoneNumber: that.phone,
				cancel: function() {}
			});
		},
		gotoCorp: function() {
			uni.navigateTo({
				url: "/pages/me/corp"
			})
		}
	}
}
</script>

<style>
page {
	background: transparent;
}

.contact-me-main {
	width: 100%; border-top:1px #ddd solid; position: fixed; bottom: 1px; left: 0px; height: 70rpx; line-height: 70rpx;
	text-align: center; font-size: 24rpx; color:#888; background:#f8f8f8;
}
.contact-me-main span {
	display: inline;
}
</style>
